import { toRaw } from 'vue'

export const formatRoom = (roomInfo: any) => {
  const { communityName, floorName, roomNum, smallAddress } = toRaw(roomInfo)
  if (!communityName || !floorName || !roomNum) {
    return '未绑定房源'
  }
  return `${communityName || ''} ${smallAddress || ''} ${floorName || ''} ${roomNum || ''}`
}
